If statement

if a == 2 then
 ...
elseif a == 3 then
 ...
else
 ...
end;

No BEGIN

no end; before elseif,

no end; before else,

end; is always required.

CASE-Statements do not exist, use elseif instead.